import wx
import matplotlib

#use wxagg as backend, 
#seems it can only appears once in the porject,
#otherwise there will be exception(s) when painting
matplotlib.use('WXAgg') 
                         
from Ui.MyWidgets import GCNFrame
from Task import Task

class App(wx.App):
    def OnInit(self):
        self.task = Task()
        self.frame = GCNFrame(None, self.task)
        self.frame.Show()
        self.SetTopWindow(self.frame)
        return True


if __name__ == '__main__':
    app = App()
    app.MainLoop()



#END